package org.dromara.system.domain.bo;

import org.dromara.system.domain.PayGroupType;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 轮询组支付类型关联业务对象 pay_app_types
 *
 * @author Gavino
 * @date 2024-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PayGroupType.class, reverseConvertGenerate = false)
public class PayGroupTypeBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 轮询组ID
     */
    @NotNull(message = "轮询组ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long groupId;

    /**
     * 支付平台ID
     */
    @NotNull(message = "支付平台ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long typeId;

    /**
     * 风控策略ID
     */
    private Long policyId;

    /**
     * A端别名
     */
    private String name;

    /**
     * 平台描述
     */
    private String describes;

    /**
     * 平台logo, 多个logo以英文逗号隔开
     */
    private String logo;

    /**
     * 是否开启循环收单
     */
    @NotNull(message = "是否循环收单不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isLoop;

    /**
     * 收单几次进入循环
     */
    private Integer nextCount;

    /**
     * 防关联开关
     */
    private Integer isFixed;

    /**
     * 防关联类型
     */
    private Integer fixedType;

    /**
     * 价格插件
     */
    private String pricePlugin;

    /**
     * 强制修改价格
     */
    private Integer priceForce;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

    public PayGroupTypeBo() {
    }

    public PayGroupTypeBo(Long groupId, Long typeId) {
        this.groupId = groupId;
        this.typeId = typeId;
    }

}
